Strange issue with print

Strange issue with print

am 31.01.2008 18:43:38 von michael.risch.wvu

Hi -

I am generating an RSS feed for a wiki and a blog. The blog feed
works fine, but the wiki feed has an issue with the print function
(note that I have tested with echo, printf, print_r, with the same
results).

Here is the problem - with the wiki feed, the print command adds a
newline at the beginning of the feed, such that rss readers don't
recognize the XML. This line does not get generated with nearly
identical blog text. Debugging shows no such newline in the variable
contents just prior to the print command.

Perhaps someone can test/verify and/or let me know why one works and
one doesn't. The text is below.

Thanks in advance for any help.

Regards,
Michael Risch

Here is the text that fails:


type="text/css"?>


Cases of Interest Feed
CasesOfInterest.com]]>
http://localhost/tiki/tiki-wiki_rss.php?
&XDEBUG_SESSION_START=PHPEdit&XDEBUG_PROFILE
Thu, 31 Jan 2008 12:40:01 +0100
Tiki CMS/Groupware via FeedCreator 1.7.2.1 generator>

http://localhost/tiki/img/tiki.jpg
CasesofInterest.com
http://localhost/tiki/tiki-index.php
CasesofInterest.com. Click to visit.]]>

en-us

Cases of Interest
http://localhost/tiki/tiki-index.php?page=Cases+of
+Interest
.diffchar
{ color:red; } +

  • target="_blank" href="http://www.casesofinterest.com/tiki/tiki-
    browse_categories.php?parentId=78&deep=on">Cyberlaw
    border="0" class="externallink" src="img/icons/external_link.gif"
    alt="external link" />]]>
    admin
    Tue, 29 Jan 2008 13:30:02 +0100




    And here is the text that works


    type="text/css"?>


    Tiki RSS feed for weblogs

    http://localhost/tiki/tiki-blogs_rss.php?
    &XDEBUG_SESSION_START=PHPEdit&XDEBUG_PROFILE
    Thu, 31 Jan 2008 17:36:57 +0100
    Tiki CMS/Groupware via FeedCreator 1.7.2.1 generator>

    http://localhost/tiki/img/tiki.jpg
    CasesofInterest.com
    http://localhost/tiki/tiki-index.php
    CasesofInterest.com. Click to visit.]]>

    en-us

    Everything is Patentable on SSRN
    http://localhost/tiki/tiki-view_blog_post.php?
    blogId=1&postId=22
    of "Everything is Patentable" at the IP Scholars Conference.



    A draft of the paper is now available at SSRN:

    http://papers.ssrn.com/abstract=1085871 border="0" class="externallink" src="img/icons/external_link.gif"
    alt="external link" />


    ]]>

    admin
    Fri, 25 Jan 2008 18:26:14 +0100


    Everything is Patentable presentation
    http://localhost/tiki/tiki-view_blog_post.php?
    blogId=1&postId=21
    target="_blank" href="http://www.law.depaul.edu/">DePaul Law School a>external link target="_blank" href="tiki-view_cache.php?url=http%3A%2F
    %2Fwww.law.depaul.edu%2F">(cache)
    has made available my August
    2007 presentation of href='Everything+is+Patentable' class='wiki'>Everything is Patentable a> at the IP
    Scholars Conference
    external link.

    ]]>

    admin
    Mon, 24 Dec 2007 15:50:21 +0100


    Why Do We Have Trade Secrets presentation
    http://localhost/tiki/tiki-view_blog_post.php?
    blogId=1&postId=20
    posted this video of my recent presentation of my article "Why Do We
    Have Trade Secrets?".



    Why Do We Have Trade Secrets? a>external link target="_blank" href="tiki-view_cache.php?url=http%3A%2F
    %2Fvideo.google.com%2Fvideoplay%3Fdocid
    %3D4941401046842694563">(cache)


    ]]>

    admin
    Sun, 25 Mar 2007 16:06:16 +0100


    Law Teaching Resources
    http://localhost/tiki/tiki-view_blog_post.php?
    blogId=1&postId=15
    teaching market resources. These are resources I found helpful during
    the job search process. I hope you find them helpful, and I hope
    others add their resources over time.



    Law
    Teaching Job Market Resources
    src="img/icons/external_link.gif" alt="external link" />

    ]]>

    admin
    Sun, 04 Mar 2007 14:54:33 +0100


    WVU and other hiring...
    http://localhost/tiki/tiki-view_blog_post.php?
    blogId=1&postId=13
    accepted a position. In the Fall of 2007 I will be an Associate
    Professor of Law at the West Virginia University College of Law.
    I'll be teaching patents and cyberlaw.



    For this and other entry level hiring, see the Legal Theory Blog:
    >
    Legal
    Theory Blog
    external link target="_blank" href="tiki-view_cache.php?url=http%3A%2F
    %2Flsolum.typepad.com%2Flegaltheory
    %2F2007%2F02%2Fentry_level_hir.html">(cache)


    ]]>

    admin
    Sat, 10 Feb 2007 01:19:02 +0100


    Update
    http://localhost/tiki/tiki-view_blog_post.php?
    blogId=1&postId=12
    time to post. I've successfully navigated the law school faculty
    recruiting market class="externallink" src="img/icons/external_link.gif" alt="external
    link" /> (cache); I just accepted a tenure-
    track position at a great law school. More details to follow.



    With the market behind me, I am beginning a new research project,
    which means I will be posting more href='Cases+Of+Interest' class='wiki'>Cases Of Interest in the
    near future!

    ]]>

    admin
    Sun, 03 Dec 2006 19:59:13 +0100


    Not much new to report...
    http://localhost/tiki/tiki-view_blog_post.php?
    blogId=1&postId=11
    I'm spending most of my time working on my latest law review article.
    I did add one interesting case:




    ]]>

    admin
    Fri, 07 Jul 2006 20:49:33 +0100


    New additions
    http://localhost/tiki/tiki-view_blog_post.php?
    blogId=1&postId=10
    week:




    ]]>

    admin
    Thu, 15 Jun 2006 02:35:58 +0100



    http://localhost/tiki/tiki-view_blog_post.php?
    blogId=1&postId=9
    class="wiki external" target="_blank" href="http://
    www.michaelrisch.com/tiki/tiki-browse_categories.php?parentI d=45">patent
    claim constructionexternal link category today. I am
    doing my next article on this topic, so it's natural I chose to add
    these.

    ]]>

    admin
    Sun, 11 Jun 2006 03:33:53 +0100


    Cases of Interest is live
    http://localhost/tiki/tiki-view_blog_post.php?
    blogId=1&postId=8
    external" href="http://
    www.casesofinterest.com">www.casesofinterest.com class="externallink" src="img/icons/external_link.gif" alt="external
    link" /> is now live! It points to the cases of interest
    wiki.

    ]]>

    admin
    Thu, 08 Jun 2006 14:03:14 +0100


  • Re: Strange issue with print

    am 31.01.2008 18:47:43 von michael.risch.wvu

    Nevermind! There is a bug somewhere else in the code!


    On Jan 31, 12:43 pm, michael.risch....@gmail.com wrote:
    > Hi -
    >
    > I am generating an RSS feed for a wiki and a blog. The blog feed
    > works fine, but the wiki feed has an issue with the print function
    > (note that I have tested with echo, printf, print_r, with the same
    > results).
    >